/*
 * @Author: your name
 * @Date: 2022-04-10 19:36:14
 * @LastEditTime: 2022-04-13 21:12:05
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \drivingTow\src\vehicle\dto\create-vehicle.dto.ts
 */
import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsNumber } from "class-validator";

export class CreateVehicleDto {
  @IsNotEmpty()
  @ApiProperty({ description: '车牌号' })
  readonly licensePlate: string;

  @IsNotEmpty()
  @ApiProperty({ description: '购买时间' })
  readonly purchase_date: string;

  @IsNotEmpty()
  @ApiProperty({ description: '教练车品牌' })
  readonly brand: string;


  @IsNotEmpty()
  @ApiProperty({ description: '教练车车型' })
  readonly model: string;

  @IsNotEmpty()
  @ApiProperty({description:'购车价格'})
  readonly price:number;

  @IsNotEmpty()
  @ApiProperty({ description: '续保时间' })
  readonly Renewal_time: string;

  @IsNotEmpty()
  @ApiProperty({ description: '保险到期时间' })
  readonly maturity_time: string;

  @IsNotEmpty()
  @ApiProperty({ description: '车子状态' })
  readonly vehicle_status: string;

  @IsNotEmpty()
  @ApiProperty({ description: '报废时间' })
  readonly scrap_date: string;
}
export class VehicleInfoDto {
  public id: number;
  public licensePlate: string;
  public purchase_date: string;
  public brand: string;
  public model: string;
  public price: number;
  public Renewal_time: string;
  public maturity_time: string;
  public vehicle_status: string;
  public scrap_date:string;
}

export interface VehicleRo {
  list: VehicleInfoDto[];
  Total: number;
}